package com.linktel.productionLine.EasyExcel.dailyAttendance.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.linktel.productionLine.EasyExcel.ExcelNotation;
import lombok.Data;

/**
 * 下载excel，定义的日出勤数据对象
 *
 */
@Data
public class WriteDailyAttendance {
    @ExcelIgnore //忽略改属性
    private Long id;
    /**
     * 产线编码
     */
    @ExcelProperty(value = "产线编码",index = 0)
    @ColumnWidth(12)
    @ExcelNotation(value = "产线编码（必须在已有的产线名单中）",remarkColumnWide =(short)  2, remarkRowHigh = 2)
    private String productionLineCode;
    /**
     * 产线名称
     */
    @ExcelProperty(value = "产线名称",index = 1)
    @ColumnWidth(20)
    @ExcelNotation(value = "产线名称（必须在已有的产线名单中）",remarkColumnWide =(short) 2, remarkRowHigh = 2)
    private String productionLineName;
    /**
     * 出勤日期
     */
    @ExcelProperty(value = "出勤日期",index = 2)
    @ColumnWidth(12)
    private String attendanceDate;
    /**
     * 开班时长（单位：h）
     */
    @ExcelProperty(value = "开班时长",index = 3)
    @ColumnWidth(12)
    @ExcelNotation(value = "开班时长（单位：H）",remarkColumnWide =(short) 2, remarkRowHigh = 2)
    private Integer workTime;
    /**
     * 实际出勤人数
     */
    @ExcelProperty(value = "实际出勤人数",index = 4)
    @ColumnWidth(12)
    @ExcelNotation(value = "它是一个整数，比如 10",remarkColumnWide =(short)  2, remarkRowHigh = 1)
    private Integer actualNumber;
    /**
     * 计划出勤人数
     */
    @ExcelProperty(value = "计划出勤人数",index = 5)
    @ColumnWidth(12)
    @ExcelNotation(value = "它是一个整数，比如 10",remarkColumnWide =(short)  2, remarkRowHigh = 1)
    private Integer planningNumber;
    /**
     * 目标效率
     */
    @ExcelProperty(value = "目标效率",index = 6)
    @ColumnWidth(12)
    @ExcelNotation(value = "它是一个小于1的小数，表示百分比，比如 0.86",remarkColumnWide =(short)  2, remarkRowHigh = 2)
    private Double targetEfficiency;
}